import { authHandlerInterface } from "@/auth/auth.interface";
import authDealHandler from "@/auth/authDealHandler";
const authConfig: authHandlerInterface = {
  name: 'menuPage',
  handler: {
    menu_search: {
      name: '查询菜单',
      hasAuth: true,
      noAuthTips: '您无查询菜单权限',
      mixin: (E: any) => {
        return <E />
      }
    },
    menu_add: {
      name: '添加菜单',
      hasAuth: true,
    },
    menu_edit: {
      name: '编辑菜单',
      hasAuth: true,
    },
    menu_delete: {
      name: '删除菜单',
      hasAuth: true,
    },
  }
}

export default authDealHandler(authConfig);